Fix compiling hdb ldap as a module

Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org>
Simple hdb plugin test

Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org>