fixed library dependence of lib/chem/testxc, fixed consistent gentenor use by introducing configure flags