Works on MSYS
minor fix
ok
ok