[corlib] Fix warnings