when using gcc-4.8.2, desactivate -Werror due to a regression

This commit is a cherry pick from commit e1e74bc3695984493be4b8c17673fa830489b427 from master.