add pid_file support at win32