now also builds correctly on OS X