some osx shader cleanups