check if ld supports --no-defined

Closes #144.
Merge pull request #145 from vicamo/issues/144/mac-ld-no-undefined

check if ld supports --no-defined