[z2219] Fix Windows compile for Ad.exe

(based on commit [12319] - b8ad0f8)

(based on commit [s1853] - 8c0ab7f)