Core: Fixed some compile warnings