Remove calls to deprecated STR2CSTR

This fixes issue #7 that involves problems compiling in Ubuntu 12.10.