Minor reorder of sdb/configure
Better CFLAG detection in configure
Minor strdup() length change