Merge pull request #86 from kronosnet/pthread
build: adopt ax_pthread.m4 to provide all necessary flags