fix typedef void *OGR issues