Added DEBUG mode to Makefile & -O2 to default release.
Fixed ‘variable may be used uninitialized` warning.