Fix -Werror build