[#1732] building with -O3 and -Werror
Revert "[#1848] turn off -Werror for beta, will re-enable ASAP"

This reverts commit 83627ccf2ca2631ecd4f0b70c77d78013c69e520.