gwm: Link libgwm against all the libraries it needs