Set CFLAGS to -O2 -Wall when running configure