Workaround for MacOSX shader object handling bugs