(lib/c) Fix compile errors under Windows/MSVC