add <cstddef> to missing files, and other fixes