Change the way that the DISABLE_GEMS flag is set.

I ran into an issue where setting the defines in the build configuration clobbers the DISABLE_GEMS define. I believe this change should correct that. The DISABLE_GEMS define seems like a system define that shouldn't be changed via the configuration file defines, if you want to change it then change the gems settings in the configuration instead.