Allow compilation on latest cygwin/gcc (lockf is now defined)