Fix windows build for type of service.