Variable declarations *must* be at the start of the scope, otherwise Windows craps out (or any non C99 compiler).