Fix compiler warnings.
Fix initial maxslot for down-recursive traces.
Fix OSX build issue.
Merge branch 'master' into v2.1
Don't start stitched trace with CALLMT, too.
Merge branch 'v2.1' into v2.1-agentzh