fixed missing zlib.h header path
check if _itemsPerRow == 0 to avoid divide by zero
Merge pull request #7330 from MSOpenTech/wp8-v3-fix

WP8 v3 build fix