additions for Mac OSX build (hurrah! both Xcode and makefile look damn fine)