Patch by Jürgen Fischer: don-t-use-file-locking-on-windows and add CMake build