build: Check whether we need libperfstat on AIX The getentropy() implementation makes use of this library on AIX.