autotools: get rid of autoconf-archive dependency

The error message if ax_pthread.m4 isn't available is very confusing
and the dependency to the 'autoconf-archive' package just for that
file is annoying. So copy that file from there to the m4/ directory
to have the file always available.

Reported-by: bluMyst on GitHub in issue #1