Replace undefined macros