Fix the port's configure script to properly detect SQLite3.
This has been broken since r397227 ("Upgrade to 3.1"): the port's build system
passes -ldl when trying to detect SQLite3. Since this will always fail on
FreeBSD, SQLite3 support will always be disabled as well.