iOS: Fixed pthread include.
Clang on OSX doesn't like static_assert.
Fixed Clang warning.
OSX: Fixed unit test build.