Added support for OpenWindowHint function.

This is required to support OpenGL 3+ (Core profile).
Tests show that this code is working for the creation
of an OpenGL 3.2 profile on OS-X 10.8.