LPS-50105 Improve error handling in RTL generation

In order to display messages in both build-time and run-time, System.err is used instead of Log.