Added OpenGL module with some additions to the project generator

Adds a Project Generator module for OpenGL. This required adding the ability to check Project Generator defines after they have been added. Note the PHP code here isn't verified, so I may be doing it wrong. Also note that it's not reliable - it's dependent on the order in which PG modules are executed, so you can only check for defines that have already been added.