Add x64 support.

TODO:
1) sort the installer
2) clean up duplicate code in build.bat