WIN32 - fixed some reallocs, heap corruption still occurs