Compiler fixes for Sun Workshop compiler