Add LIBXC option to enable libxc interface. Bundled copy of libxc is used. Some more QA cases are fixed.