GCC 4.2: Added missing forward declarations of elements() function.

Without these, one gets linker errors due to unresolved symbols (cf. Mac OS 10.6)