Made it possible to turn of USE_OPENGL