Remove debug code leftover and fix problem on windows raised by code review.
Small optimization for GpuAlloc and memset_0