Package updates for RHEL 6/7

This PR fixes the build problems in EL6.

Spec file and build changes for RHEL 7 build
Externalize Ant dependencies for different RHEL versions.
Replace %define macro with %global.
See
https://fedoraproject.org/wiki/Packaging:Guidelines#.25global_preferred_over_.25define
Switch from RPM_BUILD_ROOT to %buildroot. It's shorter.