compile all libraries as "Release Multithreaded" (no CRT debug libraries), even in debug builds, to avoid the linking mess it causes.