Fixed to compile on Sun O/S