(*)fixed compatible issues with FreeBSD