Removed more dependencies to DirectX.