Fixed to work on OSX

Using forward compat core profile cuz OSX is finicky about this.