fix allocator related compile error on wp8/8.1 and winrt
Merge pull request #9600 from huangshiwu/v3_allocator_wp

fix allocator related compile error on wp8/8.1 and winrt