Fixed compilation issue caused when CoreLocation is not linked to project.