Fix version tests on NT, 2K and XP, make some errors more verbose.