Changes for Linux compatibility.