Fix handling of strict-aliasing rules