Fix some issues on FreeBSD.
Merge pull request #58 from AbelHu/2.0

Fix some issues on FreeBSD.