get rid of warning flags -pedantic -Wall cause it is not supported by all compilers.