windows fixes

With this patch the latest CLD release could be built on windows. That's almost about symbol import/export. Next release should be fine with this.