Make WindowsServiceApplication working