Scripts/Misc: more C++11 and random fixes