make it compilable on FreeBSD.