Makefile: Apply -Wall -std=c99 -pedantic for further syntax checking
Makefile: Add BUILD_TYPE option with debug mode enabled by default