Enable -Wall -Werror with GCC; fix warnings