Changed file to be based on FreeBSD to prevent undefined reference error