Compile failed when configure --without-thread on git master branch