added some fixes for MSVC compiler
added soramimi export support.