Let the warn messages go to stderr

I modified warn.lua to write to stderr.