Add additional debugging messages around strerror_r()

We already checked for features.h on this branch.