A late penalty from Ryan Mendes sent Cape Verde into the quarter-finals of the Africa Cup of Nations with a 1-0 win over Mauritania 1-0 in Abidjan on Monday night.