Build test_view with -pthread

Without it, the Linux build fails of course.  One day we'll have to tidy
up these pthreads options...