Merge pull request #749 from xfxyjwf/mingw_endian

Assume LITTLE_ENDIAN for windows build