Fix build failure on SPARC

This fixes a "declaration after statement" error on SPARC.