fix and improve libprocps detection