mark OS/X thread function nothrow