Use proper linker command for shared lib on modern BSDs.