Add missing headers to make template files compile (more) standalone