Bug 969330 - Fix -Werror=int-to-pointer-cast in windows-only code. r=ehsan
Bug 962440 - Fixed char16_t/wchar_t mismatch.
Bug 956507 - mingw fixup.