Added -Werror flag  on Linux

Change-Id: I77fce106109a667b5a4d7c6a3aca5084862b10a7