More shared fixes...

This *almost* fixes gtk2 (compiles and installs, but linking of test program fails)

I suspect this needs more fiddling around with the configure flags of all those libraries...