Libya was long-condemned for supporting terrorism , but its relations with the international community have improved since the country ended its nuclear weapons program in 2003 .