Add more configure checks

Oh portability / how I hate thee.

https://bugzilla.gnome.org/show_bug.cgi?id=710690