Applied patch from Tal Aloni <tal.aloni.il@gmail.com>. Fix building with VS2010.