fix portability to mac osx and freebsd -- tobi