better error on shared libs being deprecated