added mem_max to user_struct; implemented set_mlimit; compiles, not tested