Remove all support libraries and resulting unused references