change some source to run in wondows platform.