added check for c99 compiler flag, changed coded to avoid some warnings, removed empty source files