Avoid lambda functions to favor slightly older versions of gcc