Core: Warning fixes