fixes for Redhat/CentOS