Core/Misc: Warning fixes