check if ld supports --no-defined

Closes #144.