fix parsing of non-primary compilation unit files