chop useless call to getrlimit() and cleanup includes