Build tests using threaded flavour because nonthreaded may not be available, but otherwise keep the flavours mess intact. Fixes build on Debian after adding tests.