Fix build with C++11
Fix OS X build and add OS X glPointer from glload