kmod/core: check for needed kernel config options

Yes, this is ugly.  There's a much cleaner way to do this for an in-tree
module, but this is the only way I know how to do it here.
Merge pull request #166 from jpoimboe/ftrace-check

kmod/core: check for needed kernel config options