debug.c: Add wildcard support

Included wildcardcmp as a dep for simplicity :)