restore missing libs, etc.