(D3D9) Add <algorithm> header include