Added BSD alternative to Linux/Darwin function in libfjnet