Core: Fix compile warnings