Add -pthread to ldflags, all tests pass for p11-kit