Add reading from multiple tables.
Fix library order at linkage