Fixes to gang scheduling for dacapo