Add ostrstream and to_string implementations

Slower than sprintf