Fix build with gcc 4.7 by removing common -Werror flag