Fix checkCompatibility to work with clean build.