build: fix build for enable direct

Only one provider can be built in direct mode, so we
keep a count. Also, additional headers need to be
installed.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>