Core: Fix warnings