Fix warnings on corelib