Add Is8OrLater() and use that in the places we checked for Windows 8.

Fixes ticket #3411.
Build.bat: Support for debug packages.