build: export filtered -lz flag in config.mak