(ITS#8056) [PATCH] libdb version is not detected correctly when using gcc5