simple gpx/kml file loader in c