Fix thread stack initialization on BSD platforms.
Merge pull request #551 from jack-pappas/sgen-patch

Fix thread stack initialization on BSD platforms.