small changes for Mac OS X