Fix: moved declaration to top for old c