Allow compilation of unix port under clang on OS X

All tests pass ;-)

Should close #545