buildtools: support object file extraction for Windows