fixed error message when compiling in C++11 mode with an explicit cast between size_t and int
Merge pull request #362 from quantumsteve/ErrorCompilingWithC++11

error message when compiling with clang++ in C++11 mode