Fix compilation errors with C90 standard