Fixed compilation problems on SunOS 4.x