Some improvements for --msgs2stderr and --daemon.