Alexandre Julliard : winebuild: Added output() function to properly deal with write errors.