Clean up D3DX loader a little