cmd/ld: darwin support for host linking

R=ken2
CC=golang-dev
https://codereview.appspot.com/7626045