Add CentOS 7 support

This applies some fixes to get this to work on CentOS 7.
Oh, no, wait. You'd have to check for Fedora in that case too. Nevermind. Ignore this.