main
[build] remove autogen.sh; use "autoreconf -i" instead
[core] add pthread locking support around the global state