Fix for OSX compilation

OSX supports GL up to 4.0 and is unlikely to ship gl header for later
version.