Try to preserve order of include files when possible.

Also, use exports even for "cat" compiler, because we now
use a function enclosure that requires them.