Add "check-compat" target to Makefile