Drop unneeded -Wl flag. Newer g++ does not accept it.
Fix conditional expressions with incompatible pointer types.

Avoids compiler error:
conditional expression between distinct pointer types ‘gzFile’ and ‘FILE* {aka _IO_FILE*}’ lacks a cast