fix strict-aliasing compiler warnings