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
Commit original strndup.m4 from gnulib, modifications in next commit.
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
fix failing acceptance test by fixing ps opts
Windows compile fix: Check for ieeefp.h before using it.
Redmine #5211: Detect broken strndup on AIX and provide workaround.

This fixes some *very* elusive crashes, that happen pretty much
anywhere in CFEngine, the reason is that strndup(src, n) on AIX has a
bug which allocates memory for strlen(src), but it will *write* n
bytes, so whenever n > strlen(src) you get memory corruption.
Merge pull request #1829 from kacfengine/aix_broken_strndup

Redmine #5211: Detect broken strndup on AIX and provide workaround.
Fix cf-upgrade's self-copy in windows.