Stop building packages if there are totality mismatches

This is to stop libraries from preventing executables to build later.
Merge pull request #1215 from david-christiansen/totality

Stop building packages if there are totality mismatches