Fix buffer overflow in resource compiler.
Make minir print names of unknown envs.