Fixes compilation issues for sparc