C_LAPACK: Fixes to make it compile with MSVC (#3605)