Fixed macro protection so that it builds properly with enabled mobility.