When fixing "8011687: Support correct dependencies from header files on
windows and solaris", the build stopped failing on native compilation
errors on windows. This was caused by piping the compiler output to
'tee' which prevented the shell from picking up the exit value of the
compiler. This patch fixes the problem by saving the exit value to a
temporary file in the build output dir.
http://cr.openjdk.java.net/~erikj/8016520/webrev.root.01/
/Erik