Resolved minor Linux compatability issues