Add -D_GLFW_USE_CONFIG_H to CFLAGS.