Added flag to support C99 standard and reorganized the Makefile

Reorganized makefile & added relevant flag in support of C99 standard. However, this will require to run the make commands (e.g. make clean) with root privileges.
Moved "image" target specific commands in appropriate place in the makefile in order specified in "make all".