add pthread library for travis build