Add CentOS 7 support

This applies some fixes to get this to work on CentOS 7.
Also, could you convert this to our standard `%w()` format please?