Core/Misc: Fix warnings

Fix warnings appearing with -Wstrict-aliasing flag.