Fix configure default LD search path.

For systems using ldconfig with different syntax (ex, FreeBSD or
MacOSX), we need to fallback LD path to defaults.