Update depencies and fix compile errors.