Fix compilation for non-linux OS's