Solaris and AIX implementation of process information gathering

(Redmine #2330)

Backport of Mikhail's 77320b6c.
Work around procfs.h refusing to compile in 32-bit LFS environment
Renamed process.h to process_lib.h due to conflict on windows
AIX missing strrstr() and mkdtemp()