libnativehelper: minor C++ modernization

Assume at least C++11 support.

Bug: 119840313
Test: builds cleanly with WITH_TIDY=1 mma
Change-Id: I246efaa337d69b70280eec595ed80d75226ffbf5
4 files changed