improve performance saving last error (per thread)
use distinct maps for direct vs non-direct callbacks (performance)
merge from upstream
use consistent processor arch names, bump version number
rename with consistent processor names
Merge pull request #211 from twall/improved_last_error

Improved last error