fix fmacros.h for cmake