build: Add missing dependency on pthreads under Meson
This fixes building against MinGW.
There is some discussion around how Meson might handle other threading APIs but at least for now, dependency('threads') is for pthreads.
Signed-off-by: James Le Cuirot chewi@gentoo.org