Added support for mysqli transactions on older php versions.