(D3D) Move d3d_init to d3d_shared.h and share it across XDK and PC D3D