send stdout and stderr to file when building