d3dxof: Reorder some functions to avoid forward declarations.