添加了对FreeBSD某些支持.

Signed-off-by: shines77 <gz_shines@msn.com>