Fix travis and non OpenGL build of main.cpp