Build fix for something which shouldn't have compiled successfully to begin with.
Fix common_funcs.h to include headers for things it uses.