Pthread_Jit in Foundation

I'm trying to create a JIT Compiler in Swift and I've found that importing Foundation imports some but not all of the functionality of pthread.h in that regard.
But strangely enough actually importing pthread will then make those functions disappear entirely:

Following the Porting just-in-time compilers to Apple silicon developer documentation, using the callback functions is the safer and preferred way of writing to the jit memory page but calling them natively from Swift alone is seemingly impossible even though most of the pthread_jit functionality is imported with Foundation and made available.
I have not been able to find any further information as to why this is, if it is a bug or if there is any workaround so any help or insights would be appreciated.