exclude CreatePidFile() function on WIN32 as it is unused
Merge pull request #2855 from Diapolo/guard_CreatePidFile

exclude CreatePidFile() function on WIN32 as it is unused