more thread support, also add freebsd 5
1 file changed