Fix merge error

Change-Id: I9a9ffebaac3364da3408b4c4703d47c159dc24ae
Added missing <include sys/resource.h> for gcc-4.7.1

Patch Set 2: Added gcc version check as suggested by jeagoss

Change-Id: I7743d5fab8d026e12ad9e9ef4d4fbabe0a9bded7