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