Using C99 standard
DEBUG_LOG function

-Added a DEBUG_LOG function
-Fixed a lot of warnings
-Fixed some multiple inclusions
-Removed gnu99 standard which was causing file inclusion errors