Remove not used libraries and macros.