fix detection of uninitialized edge times
make scheduler work with clang