fixes build for Mac OS X