Assorted Linux fixes