fix some ancient SpSocket problems in generating good error messages
partial fix for https://github.com/GsDevKit/zinc/issues/43
Merge branch 'dev'