make the unit tests OS X compatible
Merge pull request #188 from reneme/osx_unittests

Make unittests run under OS X