avoid -Werror=strict-aliasing error while compiling