Checks OS type so to build properly on both Linux AND FreeBSD