[1.5] fix configure.ac to comply with recent change of PThread dependency