Like GLFW.jl does it