Makefile.am (LDADD): Add -lpthread for Ubuntu 13.04