Fixed to properly catch multiply defined symbols.