Inserted forward declarations.

Otherwise it won't compile.