Goals from Callum Maycock and Alistair Smith gave promotion-chasing AFC Wimbledon a vital 2-1 victory against bottom-side Carlisle at Brunton Park.