Cold Equations has a neat little table offering advice to dictators interested in maximizing their longevity.
The lesson here is that you want to be more like the leaders of the countries at the bottom of the list. Anti-Americanism + nuclear programs = happy dictators. Embracing America = setting yourself up to be stabbed in the back.
The boys from the DPRK sum up at least some of the reasons why:
An unidentified North Korean Foreign Ministry official condemned the ongoing coalition airstrikes on Qadhafi forces and told state media that Tripoli was tricked by the West into giving up its nuclear-weapon technology in “an invasion tactic to disarm the country.”