3.0 restore appveyor build

Appveyor built was broken after #5120 .
This PR restore a working behavior by disabling ``shallow_clone``. (thank's @lorenzo )

Also fixes some failing tests after #5141 for windows.