Generate macros for boost