Compile ffmpeg + pthread problem

I need to add an include for it to compile, otherwise I get errors about OS_SPINLOCK etc...