Fix a broken travis build (missing pthread library when linking a test).