Only include sysctl if PTHREADS are being used.

This fixes an import error when compiling for Android/ARM
without PTHREADS.
Merge pull request #7 from bamos/master

Only include sysctl if PTHREADS are being used.