fixing preprocessor directives for linking to GIS-Library