import fcntl only on unix