Mining job cuts haunt African leaders ahead of elections