Alloc perf test

Add PerformanceAllocTest.cpp/h to the windows, linux and android project and fix some compiling errors on windows.