fixed -lpthread in configure.ac issue on ubuntu 13.04

fixed issue with lpthread