[CMAKE] Zap builddir.h.cmake and instead define macros globally