makefile linux: add flags to remove unused symbols and libraries