Added MacOSX workaround for shader object crash/errors