Moved platform specific stuff from extgl.c into platform directories
Mac OS X port of the refactoring. Linux and Win32 fixes.