Fix compile errors in kosaraju