Fix warnings in core and base