Revert "frameworks/base: Fix compile errors"

This reverts commit 4ea79c201e537e5490cc459c7438cf2f7f0c53b4.
Revert "Possible leak in android_emoji_EmojiFactory_newInstance"

This reverts commit 97b555c05f93e46c6dbfe9610414ca003dee6d9e.
Revert "frameworks/base: Fix build in ISO C++11 mode"

This reverts commit 409387ce57cd0c3de03f120d7817be3c422f4eb4.