Fix compilation issue introduced with the windows service feature