Fix inconsistent global MAGICMODE declaration

Was breaking the unity build.