fix broken compilation in adding macros