Fix build and instrument Ant task for Windows, reported by Martin
Robertson.