Patch attached to include <sys/stat.h> in a one of the files, which results in a successful emerge
Created attachment 159931 [details, diff] patch to fix gnome-screensaver-2.23.2 compile
Pushed to overlay. Thanks Seemant :)