Add fixed_stack_segment to function that use unsafe functions