Add compile switch -pedantic and change code for this.