[12429] Fix Windows compile for Ad.exe

(based on commit [12319] - b8ad0f8)