Adding workaround for Apple OpenGL which is missing GL_MAX_FRAMEBUFFER_LAYERS.