Libya rebels gird for fight in city near capital