cmake: check for GNU style strerror_r