Add bunch of missing includes to fix build with gcc 4.7