Why does VS2010 lose linked dll-libraries while compiling?

Do you mean that your compiled .exe complains about a missing .dll when run on another computer? Try linking to the C++ runtime instead of the library dll.