Pass correct arch flags to ld on Darwin
Handle different 32- and 64-bit target cflags