Fixed some compiler warnings related to changed CFLAGS settings.
used -Wall to find warning: 'dd' is used uninitialized in this function [-Wuninitialized]