fixed const reference in interlocked; made System allocator thread-safe; removed old stdafx.cpp files which are not useful