Drop -shared from CFLAGS, Fix sdb_finish() return value