bugfix for issue #59, update threading for use with latest glib (2.42)