reorganized shared libs and other tiny changes