Support for FreeBSD

Same stat parameter as for Darwin
Merge pull request #4 from fegu/patch-1

Support for FreeBSD