Patches for check_mysql segfaults on RedHat 8.0 [sf#684948] [#113]