add MSVC build scripts
fix bugs
add field width limits to fscanf()