Fixed compilation on Windows + use Irrlicht's loaded GL extensions instead of counting on link time with GL_GLEXT_PROTOTYPES, which doesn't work on Windows

NB: I didn't test on Linux, but that should work hopefully.

I prefered to separate the cases __APPLE__, ANDROID, WIN32 and #else.
On Windows, you need to include windows.h before gl.h.