fix forgotten namespace
try to build on mac os X
better apple compatibility
Merge pull request #7 from nraynaud/master

Compile on Mac OS X