Fixed issue with windows service using runtime as dll instead of static
Merge pull request #747 from lodle/744-bugfix

Fixed issue with windows service using runtime as dll instead of static