add --autolibs for upgrade, update #1602