win: Fix build under MinGW
win: Cleanup the bundle script