Corrected windows build errors for debug and 32 bit builds