Fix the build on older version of libstdc++.
Fix lint warnings.