Fix linking with today's GLib. Fix a few warnings.
Still doesn't link, claims it can't find various -lm functions?