Fixed import of fcntl