Add newline character to warnings/errors

(stderr.write doesn't append a newline like print does.)