I want to build on Ubuntu :)

Ubuntu runs a newer version of GCC than V8 likes. This is the flag that is required to make it work on that. 

You probably want an option to disable Werror as an input to the script rather than doing it by default like this.