BeOS threading support. changed some "if FOO_THREAD||BAR_THREAD" to a more generic...