Windows installer fixes

A few bugs with the Windows build script and the NSIS install script are
now fixed