--print-foo should always use stdout.

--print-ast and --print-dag shouldn't clutter up the output file specified by -o/--output: that's just for backend output (e.g. Ninja).