Support x86-64 arch build

* Create .res at the build time.
* Change call convention by arch type.