Fix target prerequisites.