Fix error finding libraries