Fixed runtime errors when using Intel C++ compiler

See the details here - http://stackoverflow.com/questions/11678223/intel-c-compiler-cant-handle-deep-templates

P.S. I screwed up the commit message - not build errors, I meant runtime errors.