Set arch according to CPU type and bits.

* Thanks @mistydemeo for the suggestion.

Closes #112.