Fix -Wall warnings