Updated to be compiled with /MT (which requires disabling C++ compiler warning 4275 to be able to successfully compile).
Updated to be able to successfully compile with VS2010.