cf-upgrade should not close STDOUT of all forked commands

Now both STDOUT and STDERR of forked commands go to STDOUT and STDERR of
cf-upgrade. Previously it was just closed and e.g. dpkg was failing
because of that.

Modify the test scripts to actually test that.
Use even more compatible sed regular expression for AIX.
Merge pull request #1821 from jimis/cfupgrade

cf-upgrade should not close STDOUT of all forked commands
sys/sysinfo.h needs to be included before sys/sysctl.h

Redmine 6328. Bug in old glibc, found on debian 3.1.
Merge pull request #1823 from jimis/redmine6328

sys/sysinfo.h needs to be included before sys/sysctl.h
Redmine #5148, #5206: uptime is no longer failing with latest fixes.
save only global processes on global zone ps
Merge pull request #1811 from MatthewCattell/solaris-filter-by-global-zone

save only global processes on global zone ps
cache is_global and fix logic for creating pidlists when saving
Expand this.promiser for some attributes in files promises.

Supported are attributes in body classes and log-attributes in
body action, as well as the previously supported transformer.

Addresses the highest priority items left in Redmine #1554.
Expand this.promiser in file_select exec-attributes

ReplaceStr turns out to be broken. Use SearchAndReplace instead,
with dynamic memory allocation.

Redmine #3530.

Additional improvements in test case.
Merge pull request #1826 from vohi/redmine/1554

Expand this.promiser for some attributes in files promises.
Merge pull request #1825 from MatthewCattell/fix-solaris-zone-logic

cache is_global and fix logic for creating pidlists when saving
remove -e from grep and use fgrep instead of grep -F in testall
Merge pull request #1827 from MatthewCattell/harmonise-grep-fgre-egrep-testall

remove -e from grep and use fgrep instead of grep -F in testall
remove xfail on acceptance test for solaris 11
Merge pull request #1828 from MatthewCattell/enable-xfail-run-solaris11

remove xfail on acceptance test for solaris 11
Windows compile fix: Check for ieeefp.h before using it.
Do not alter environment CFLAGS, CPPFLAGS etc.

These variables should never be overriden by our makefiles, only the
AM_CFLAGS or libcf_agent_la_CFLAGS variants are to be set.

Also fixed wrong libutils dependencies that were discovered after this
change: libutils currently must link to OpenSSL and PCRE.

This clean-up occurred after an attempt to only link cf-upgrade to
libutils, but noticing that it pulls out everything as dependency.
Remove hackishly stated dependencies, they are properly detected now.