* gdb.base/watch_thread_num.exp: Use gdb_compile_pthreads.