Add -DHAVE_CONFIG_H to all compiles and wrap includes of config.h in an
ifdef so we can compile without it.
Alwasy include <libtesla.h>.  I'm arranging to put it in the include
path in the kernel context.
In the kernel ignore HAVE_STRNLEN and just include sys/libkern.h which
defines strnlen.