Make sure global error string are global
Fix other libraries as well
Merge pull request #40 from ozh/make_global

Make sure global error string are global