Use nullptr everywhere, improved d3d typedefs.