Fix various C++11 issues and strict aliasing violations.
Loudness and Visualizer effects: Don't force -O2 if -Os or -O3 is provided.
libcameraservice: Fix build when not using C++11.