main: fix pidfile compilation on windows