debug.c: Add wildcard support

Included wildcardcmp as a dep for simplicity :)
Merge pull request #4 from clibs/add/wildcard-support

debug.c: Add wildcard support