fix timeconst compile deprecated error
fix unwind warning