port of fix from 3.5.x for issue #3408 - getprocs64 on aix

(cherry picked from commit 7ada75b50e3ea724251b656d6491a81c34744184)