Replaced std::strstream with std::stringstream
Making size change explicit in a cast.

This silences a `cast from integer to a pointer of different size'
warning in gcc.