compat: msvc: Make sure the object files are included when linking statically