Fixes to original ns-2 codebase to compile with C++11.