Fix release build on OS X.
Fix shaders for core profile.