Fix preprocessor checks to compile against GLESv2