Fix warnings of -Wall -Wextra