fixed huge rendering bug with some implementation of OpenGL & CPU speeds
fixed MANY compilation warnings
fixed some errors found by Xcode's code analysis