chop useless call to getrlimit() and cleanup includes
cleanup loading of the configfile and remove some includes