fixes for old C compilers and for Ultrix