fixes for Centos 6