Converting C codebase to C++11: straightforward changes to make the code now compile warning-free using g++ -std=c++11