libflib: Add ptreq/ptrneq detect functions.