Revert "#undef various <sys/stat.h> #defines."

This reverts commit 070cb03f50a301c23ae3bf77b5fe302ca015e1ba.

Change-Id: I3e43a0f6e99f677f551362cc49860690f0db7d42
Merge "Revert "#undef various <sys/stat.h> #defines.""