Simplify autogen.sh, rely on GNOME's autogen
Always use threads
Don't use the deprecated function g_atomic_int_exchange_and_add()