Fixed forward compat flag in glfwWindowHint in mainwindow.cpp to make it run on osx