Fix compiling hdb ldap as a module

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
Simple hdb plugin test

Signed-off-by: Nicolas Williams <nico@cryptonector.com>