Rework build scripts. Add information about building for Windows 8.

Fix Windows 8 build errors.