fix build for changes in GLib 2.31
http://ragnermagalhaes.blogspot.com/2007/09/undefined-reference-to-gthreadinit.html
Allow building with automake 1.13.x
Merge pull request #16 from rharrison10/rharrison10/buildfix

Fixes for building on Fedora 19 Rharrison10/buildfix