Can build on VisualStudio, plus some edits in rb files

`File.foreach` has been added, and some edit in `File#initialize` for dealing with undefined `Errno`