added bunch of fixes for extension's generator fow wm,wp8 platforms