bugfix with strerror_r - still not working but at least not using uninitialized data