What about explicitly adding the file/s? The libraries are only places for Quartus to look for design files that match the missing component name. For example, if your HDL instantiates a module/entity called blaa, Quartus will first look through all the files specificially added in Project -> Add Files to see if blaa is defined anywhere. If not, then it looks in the libraries for files that have that in the name, like blaa.v or blaa.vhd. It does not search all files, just known filetypes. It also won't look inside the files if the names don't match, so if you have a file called blaa_altera.v, which has a module called blaa inside, it won't look at that because the name doesn't match blaa. Just some ideas as to what might be happening.