Fixes #5945: add windows support to services