Print internal error messages to stderr

Makes logs a bit easier to scan through, as errors are in a separate stream.