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