Remove references to undefined macros