maxrss does not need to be a macro. it still could use a proper multiplatform implementation