Add missing headers.

We are missing some includes to compile with recent gcc.