Fix #20058: Make compilemessages use stdout instead of stderr.