fixed types, added exception for APPLE in glext.h