Bill Clinton endorses Obama for second term