Cmake: move pthread target link library from common to qcdio library, as common library depends on qcdio.