Fix OS.cc build for FreeBSD < 9

There was an API change, to be POSIX 2008 compliant.