Import from OpenBSD a patch which eliminates the link with -ly or -ly
patch by ibara@
Obtained from: OpenBSD