implemented Kernel#warn

- also fixes invalid return from StringIO.read
Merge pull request #410 from mojavelinux/kernel-warn

implemented Kernel#warn