Two goals from Adam McGurk secured victory for Portsmouth against National League side Macclesfield Town.