fix problems with mysql client 5.5
Merge pull request #1 from waja/mysql55compat

fix problems with mysql client 5.5