add libdl to tests