add POSTGIS_HAS_SERVER_VERSION define to cmake build

This define was left out of the cmake migration