[DEBUG] nailed bug down to CAS problem
[FIX] fixed non-C++11 compiler issues