Fix compilation on mac os
Update build instructions for mac os x
Merge pull request #299 from wackou/fix_macos_compile

Fix macos compile