Fix missing CoreVideo in the Terrain sample
Link internal GLFW on MacOSX