Use weak __thread declarations in parlib-compat (XCC)