shift compat macros to makefile