Fixing some RHEL build warnings and test failures.

[#0]