Add missing rpmatch.h everywhere it needs to be.

Some files were missing rpmatch() compatibility macro header, which broke compilation on uClibc, which does not provide rpmatch().

Signed-off-by: William Pitcock <nenolod@dereferenced.org>