add some unixy (mostly osx) work arounds
Merge pull request #1 from tjfontaine/osx-fixes

add some unixy (mostly osx) work arounds