Several libdirs: proposed patch