* modify some source code to run on Windows platform