Fix declaration after statement to make MSVC happy