Removed platform dependent code to transfer OpenGL contexts

Removed platform dependent code to transfer OpenGL contexts and use the proper SDL functions instead.

This was only tested on Mac OS X, but should also run under other systems. Please test it!