remove all unnecessary extra libs