build script added, support both x86_64 and i386