add OGRGeometry::GetSpatialReference add fix a few compiler warnings