Core/Misc: Fixed a few warning found by static analysis tools.