Fixes #5945: add windows support to services
Merge pull request #161 from ncharles/bug_5945/dev/ncf_service_windows

Fixes #5945: add windows support to services