Add guard macros to compile without EME