Add -Wall and fix warnings