cleanup, remove stale libs, rebuild