Make the build flags setable via a define.
Enable systemd support for RHEL7 and CentOS7.