Add missing includes of "system.h", fixes #14732