Fix compilation warnings with --enable-more-warnings.