test: explicitly link against "dl"

Linking against libdl is needed for the tests to start, at least at
Ubuntu 12.04.