Fix building with -Wdeclaration-after-statement