fix non-CPython C compile problem (variable declaration after code)