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

Fix constructs that are considered new string literals in C++ 11 mode

Change-Id: Ifa28c5ce45994e9ff92e8b008d5962c728d0a416
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
surfaceflinger: Work around aliasing violations

Change-Id: Ief7f8e9ccc741037609034ae78b2283cc481fadb
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>