Freeing unneeded libraries in config program