Add compat.h; #include it in badfrag.c, to make it build on non-1.4T.