add ax_openssl_threads.m4
use ax_openssl_threads.m4
build mttest.c with and without threading