Windows (via msys) build support.
Fix Linux build.