Fix failing tests on RHEL5.

A couple of missing packages, and the RHEL5 image also had SELinux in enforcing mode.
Fix lib path for Ubuntu 10.04.
Merge pull request #727 from mhaskel/ubuntu1004-fixes

Fix lib path for Ubuntu 10.04.
Merge pull request #726 from mhaskel/rhel5-fixes

Fix failing tests on RHEL5.