added pthread support with automake