Revert commit 54cd130, will fix FreeBSD issue later.