Fix iOS/OS X GL_ASSERT in release builds

Xcode doesn't define NDEBUG in release mode so, glGetError is called after every GL call even in release builds.
Merge pull request #1628 from rgngl/patch-1

Fix iOS/OS X GL_ASSERT in release builds
Fix Android orientation problem

If the device orientation changes after application launch,
accelerometer values are still calculated with the old orientation. This
patch fixes that.
Merge pull request #1629 from rgngl/androidOrientationFix

Fix Android orientation problem
Merge pull request #1625 from louis-mclaughlin/next

Fixed linux cmake build