fix windows compilation
dump function has been improved