apps: Port egl/gl tests to glfw.