Compiling a C program consisting of multiple files - the importance of declaring a function