srrd/trunk: fixed configure.ac to detect and use libdmallocth.a when compiled with threads and —enable-dmalloc is set.