fix LKSMITH_IGNORED_FRAMES, add unit test

* fix compare_strings: the void* argument that is passed in is a pointer
to an array slot, not the contents.

* add a unit test to ignore_unit to cover ignoring a function

* test.c: add num_recorded_errors

Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>