fixed cmake
WKT validation with OGR before repairing

doesn't fully work but that'll do for now