fix qreal vs double issues
fix typedef void *OGR issues