Turkish President Recep Tayyip Erdogan has deepened his defence ties with African countries ahead of the gathering of the continent's leaders in Istanbul.