added debug macro and updated compiler to use c99 flag/standard