Set up d3d projet and common code.