Removed -arch i386 from xbuild command to allow library to be executed in x64 architecture
Updated to support 64-bit architectures.