fixed the configure error and compile warning in FreeBSD
Merge pull request #3 from yaoweibin/fix_tfs_freebsd

fixed the configure error and compile warning in FreeBSD