fix example compilation with bdb >=5
closes #14