Make sure to add -lz, when needed, to the building of a DSO mod_sftp.