Fix for 64 bit machines where
sizeof(unsigned)!=sizeof(std::string::size_type)