fix build for changes in GLib 2.31
http://ragnermagalhaes.blogspot.com/2007/09/undefined-reference-to-gthreadinit.html