Disable failing unit test on Solaris.
Use more compatible sed arguments.

"sed -r" is not supported on Solaris 9 (and probably others).
Revert recent dependency on libutils, use a simple ifdef instead

Proper dependency tracking in our Makefiles needs re-organisation of
configure.ac and all makefiles, to be done.
Merge pull request #1814 from jimis/cfupgrade

Revert recent dependency on libutils, use a simple ifdef instead
disable two failing unit tests for aix
Merge pull request #1815 from MatthewCattell/disable-failing-aix-unit-tests

disable two failing unit tests for aix
Fix build.
Merge pull request #1816 from jimis/cfupgrade

Fix build.