added base/allocator files
used CreateMutexEx for WINRT and WP8
delete first pass of allocations before starting second pass