Fixed all -Wsizeof-pointer-memaccess errors while compiling with 4.8 toolchain