Remove unused libs, optimized layout.