zscanner: apply visibility attribute
libknot: add missing visibility attribute to some functions