r8804: add automatic mysql client detection