Fix compile issues in the -Pall profiles. Exclude modules with invalid dependencies