update makelibrary calculation of max_processes too.