Integrate various fixes so Novacoin builds on OSX
Merge pull request #2 from jyap808/osx_build_fixes

Integrate various fixes so Novacoin builds on OSX