Fix bugs for cross-platform purpose and add configuration files for building windows exe file