Merge changes I5e3b216a,Iebf8b87c

* changes:
  Linux: Add proper casts for varargs call.
  Linux: Implement getrlimit