Added thread lib in linker for Travis