Add test that NMake works with CMake. Closes #1069.
Add Building.which() function to help find a tool in PATH. Use mingw32-make instead of the nonexistent 'make' with cmake on Windows if mingw32-make is found in PATH. Helps with issue #695.
Skip nmake test in test_cmake on Windows if PATH doesn't have nmake set up.
Fix previous merge.
Update docs on test.
Fix indentation in Building.which() function.
Add missing 'if WINDOWS' in CMake toolchain handling code.
fix preventDefault being called after event has been replaced
remove no longer necessary preventDefault
EMCC_STDERR_FILE option, to log stderr in js compiler to a file
Merge pull request #1605 from juj/mingw32make_nmake_cmake

Mingw32make nmake cmake
Add functions for marshalling wchar_t (which is fixed 32-bit UTF32LE on Unix) strings to and from JS, and add a test.
Skip test_utf32 when on s_0_x since they don't link in libc, and the code relies on wcslen().
Rename utf32<->jsstring marshalling functions to UTF32ToString and stringToUTF32 following azakai's suggestion on naming convention.
Fix UTF32 <-> JS string conversion for non-BMP characters. Turns out JS string functions .length, .charCodeAt and .fromCharCode do not operate on Unicode code points, but UTF-16-encoded Unicode code units.
Update utf32 test to contain non-BMP characters in the test string.
Fix UTF-16 surrogate detection.
Add support for marshalling UTF-16 strings to/from JS. Allows passing wchar_t strings to JS when building with -fshort-wchar. Closes #1565.
handle flexible arrays at the end of structs, whose elements are themselves structs; fixes #1602
add space to emcc debug output