Use same linkage settings as the Xcode app

This may fix #3