Revise to support CentOS5

I revise to fixes for centos5. ref https://github.com/taf2/curb/pull/213

/cc @ctrochalakis