bring back fcntl support for FreeBSD #36