fix for MSVC

fix for MSVC.
* add KONOHA_EXPORT to all modules and packages
* fix some mis-replacement