Add fixed_stack_segment to function that use unsafe functions

Seems to be required for the current Git head