Fix compile for Mac OS X