add PerformanceAllocTest.cpp/h to vs project and fix some compiling errors