fix ld scripts on FreeBSD

another part of the regex used in MRI ffi was also missing
Merge pull request #1521 from tduehr/freebsd_fix

fix ld scripts on FreeBSD