Burnley's Dwight McNeil came out on top against West Ham's Ryan Fredericks with a late winner in their ePremier League Invitational match.