Make global functions and macros work properly