add cmake support for POSTGIS_HAS_SERVER_VERSION (#4675)
fix memory crashes in getfeaturinfo requests (#4684)
variable declaration