[HOLD] C++11 compability

Fixes C++11 incompabilities and turns on it whenever possible.