core: added missing include for gruel thread