fix or disable stuff that uses deprecated opengl functionality