Correctly link against glib2

Signed-off-by: Simon Busch <morphis@gravedo.de>