Core: Fix some warnings