remove a R_NEW and fix "pkg-config --libs sdb"