Support for Mac OS X 10.5 Leopard

CGLShareGroupObj and IOSurfaceRef were added in 10.6 Snow Leopard SDK
Add workarounds to glimports.hpp to support building for pre-10.6.