Some #include's are missing. Patch is attached.
Created attachment 190848 [details, diff] Fix compilation with gcc-4.4
Fixed in portage. Thanks