fixes for CentOS