Changes needed to compile on ARM. Remove OpenGL dependency