Remove uses of dt_t and IRState from the frontend, and update gluestub.c

Typo, won't create an error if `dt_t` was already defined in a previous header.