Fix compilation on Sparc host, implement ld and st