Support for building on RedHat/CentOS

This PR adds support for building OpenELEC on RedHat and clones (CentOS).
Tested on RHEL 6.4 and CentOS 6.5