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