Fixed compilation of the Windows service