Core shader bugfixes, mesh mask computation, upgrade test to GLFW3