rudimentory CentOS support

minor changes to support CentOS