The possibility to include one .c file in a .wdl main file was implemented during the A6 -> A7 transition phase, but should still work. However, for calling external functions you always need to declare a function prototype in the .wdl file, otherwise C-Script won't find it.