Patches for check_mysql.c improvements to support MySQL5 [sf#1509752] [#674]