Please replace *strerror()* (not thread save) with *sstrerror()* from `src/common.h`. Dito below.