fixes for perl on ubuntu