PeterRoss
Our friendly neighborhood Putinist
I got it working. As I thought, it's something about VS versions. I've installed VS 2008 Express and everything went fine (well, except of all these warnings). Resulting file is just the same size as original IMS.dll and is working fine. Sorry for the panic 