fix unfounding libz and other libs #1
fix unused emplate files