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

This reverts commit a7cac3a951316cf25fb0ee9fa9a77b92f5c0e43c.