Pass arch with mac sdk options when building class libraries.