enabling -Wall and disabling minor warnings