A number of African countries have close ties to North Korea. And it is for the very same reasons that these states have (or had) ties with Cuba, China, and USSR/Russia:
Namibian officials describe a different North Korea — a longtime ally, a partner in development and an affordable contractor. Since the 1960s, when North Korea began providing support for African nations during their independence struggles with European colonial powers, the regime has fostered political ties on the continent that have turned into commercial relationships.
Recall that it is China that was willing to come to the aid of landlocked Zambia after apartheid South Africa and apartheid-lite Southern Rhodesia threatened the country’s trade links on account of its support for nationalists from both countries. The USSR and Cuba were also vital allies of African nationalist liberation movements at a time when the West was mired in doublespeak over decolonization and racial equality on the Continent. Cuba, in particular, committed blood and treasure in the liberation of Angola and Southwest Africa (Namibia).
Nelson Mandela vowed never to forget friends that aided the ANC against apartheid:
All to say that China, Russia, Cuba, and North Korea are not merely using African states. It has always been a game played on the basis of mutual interests, with the distribution of benefits dictated by the prevailing balance of bargaining power.