Revert "Fix for pthreads and cross_compile"

This reverts commit 6b61bc11d0055b76ce32dce701107234dabb7a76.