Add x64 support.

TODO:
- [ ] sort the installer
- [ ] clean up duplicate code in build.bat