PThread support
OSX Fixes
Merge branch 'dev' of github.com:ernya/WottReboot into dev