Add runtime check for Windows version to avoid crash on older versions without need for separate binary, fixes #404