Fix compat.c, compat.h WRT config.h

The compat files were always being used. Now, with the help of config.h,
the will only be used when needed.