Fix build on CentOS
Merge pull request #242 from jamesbulpin/fix-centos2

Fix build on CentOS