Merge all other contributions

New features
Fix Windows bugs
In real life, I found some time the GC doesn't close it and get an error on next call (can't open two time the file).