Gaddafi will be remembered as a tyrant in Libya despite reputation as a buffoon in the west, Ian Black reports