Fixed TSTAT defn for mingw builds