read_compressed_resource(): Remove potential aliasing violation