hash-including your support source files works, but that's a very non-standard approach.
If you want your support file(s) to be compiled and linked with the student answer in the usual manner, you'll have to set the sandbox compileargs to compile it/them and the linkargs to link it/them.