fixed tc_malloc on windows