improve Linux compatibility