add explicit pthread linkage