Clean up code: declare static functions prototypes on top of .c files