check for rlimits on Linux
minor fixes according to review comments
Merge pull request #31 from daschuer/limits

check for rlimits on Linux