Revert "Revert -werror for now to fix compile"

This reverts commit 9d904061c20eaa90adad289ed7656f59c3b24854.