Fix gcc errors from HTHREADS/PTTRACE rework commit