Fix link line for cream_gahp on RedHat7.

Zlib (used by gsoap) needs to be explicitly mentioned on the link line.
Fix mismatched cmake if()/endif() labels.