Add GLM support for MacOSX, from dak180.