Fixing issues on windows for net & fs modules