Handle the case when no dbm library is compiled
Don't build ssltest executable when cross-compiling
Fixes for static build