retire tb support, use windows thread instead of pthread while using mingw, remove debug test