Add compatibility fixes for innodb optimalisations on EL6

Change-Id: I17c4e2f6e05f00afcc8fbd67cb094576aec1f904
Closes-Bug: rhbz#1078999
(cherry picked from commit 2877033d2155b58fac9bc2e3c2e566bc092a2584)