Fix invoking on Windows.