export 3rd libs, remove unnecessary packages