Added compatability layer.  The sources could have been put in src/ directly, but that directory
is ignored so I figured leave them outside it.
Added  #include "compat.h"  to every .c file generated.