Fix percona toolkit version 5.6 on RHEL systems

This is #216 rebased on top of the latest master and cleaned up a bit.