fixed OS X build