Core: Fix compiler warnings