Fix build with gcc 4.7 by removing common -Werror flag

Change-Id: I09791b246060e2feb35ad71dfb3ac37c02036aa3