Make thread.h reusable for outside RA