Mac build scripts and xcode project update for spearmint

these changes make it possible to successfully build on Mac using make-macosx* scripts and misc/xcode projects