Modified to ignore object files in lib.