Fix compilation on windows
Install: -pkg option to create distribution .zip
Handle 32/64-bit package download, code cleanups