rutil: add test cases for compat.hxx

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10435 ddefafc4-47db-0310-ae44-fa13212b10f2