removing unused libs, optimizing using gzip in makefile