Giovanni Mascellani : configure: Detect pthread support using -pthread instead of -lpthread.