cmake: Fix building libssh as a static lib on Windows

Fixes T198

Merge request reports

Loading