fixes for OSX shader compile