Link libSOGo with libdl on systems with glibc

This one somehow went missing when my patch was merged. Glibc puts the dl_* functions in libdl and we shoud link with libdl on glibc-based systems. The check for gnu instead of for linux means it also works on non-linux glibc systems such as Debian GNU/kFreebsd.