make it compiled for Mac OS X