Fix build with gcc 4.7 by removing common -Werror flag

Change-Id: I14a3185259fe5542b2718eec4c06e170f68327c6