Revert "Revert "frameworks/native: Fix build in ISO C++ 11 mode""

This reverts commit 01ccaa2b460042594606142915dbadda82b84aa8.