Update for bsd
Changes for clang
Block main thread while computation
Add thunk example