Fix "check-compat" target in Makefile