glfwSetWindowMonitor and some other functions are only available from 3.2 onwards.
We use variable init in for loops, so need c99.