Explicitly pass the ObjC ABI version when compiling static libraries

Also improve the algorithm that determines wether a Mach-O file contains Objective-C 2 data