[PATCH 11/19] berkeley: Fix build with GCC 14