move variable declaration out of for loop statement
remove c++11 requirement
only define c++11 allocator when compiled as c++11
only define c++11 allocator when compiled as c++11