Fixed SPARC compilation

Fixes cross-compilation issues for SPARC. Same as the MIPS issue