Add missing includes to fix the build with glibc.