Make compat.c conditional

Busted: we were always compiling in compat.c. Outrageous.