Fix windows build for type of service.
Merge pull request #762 from ricnewton/master

Fix windows build for type of service.