Patch for compilation on Centos 6.5