Fixed opengl module examples for OS X and Windwos