Implement SwapInterval for AGL interface

Implemented the correct call to the cocoa NSOpenGLContext to set the swap interval, so the VSync video setting works in OSX.