portability stuff. More portable printf formats for 64-bit types.
Use fcntl file locking to ensure exclusion on the server socket and to better recover from crashes. Flush the registry before closing the socket to avoid timeouts on the client side. Moved get_config_dir functionality to libwine.