Fix some Wformats
Fix an aliasing violation