Ubuntu compatibility tweaks