Set DYNAMIC_GHC_PROGRAMS=NO for FreeBSD because $ORIGIN is not resolved
properly (see #7819)
Fix linking with binutils 2.22 or later on FreeBSD 9.1, where one should
explicitly link against any dependent library