qtbase,qtdeclarative: Add -pthread to linker flags
Helps to link in atomic functions on riscv64
Fixes
qtestcase.h:359: more undefined references to `__atomic_fetch_xor_1' follow
collect2: error: ld returned 1 exit status
Signed-off-by: Khem Raj <raj.khem@gmail.com>