build system fixes (wrong SONAME)