Fixes to compile under OSX 10.9
Merge pull request #1 from ChristianFrisson/osx10.9

Fixes to compile under OSX 10.9