Various fixes for CentOS and package installation