Revert "Revert "frameworks/native: Fix build with ISO C++11 compilers""

This reverts commit 5cba15278ea1bd14ec4bde512140dc7fd98f93c1.