build script: added an option (-t) to specify target architecture