Bdb compile fix