[aot] Allow the redirection of output messages from the AOT compiler to a logfile.
[aot] Print error messages to the aot logfile as well, avoid exiting the process on failures.