Disable OSMesa on macs.

See discussion on #888.