Adapt to removal of ~str.
Merge pull request #12 from ebfe/fix-build-master

Adapt to removal of ~str.