Win spawn fix

fixes #171