Naive write_string for OSX
Merge pull request #14 from abesto/osx-write-string

Naive write_string for OSX