link correct soci lib depending on arch