Changed FreeGLUT to GLFW

Also fixed some types and enums.
Forgot to call makeCurrent
Fixed a bug in context version changing.
Merge remote-tracking branch 'origin/platfrom' into Android