agent: Fix build regression for Windows.