Fixed Mac OS X build