d2d1: Use CRT memory allocation functions.