Add corresponding statics to function definitions.
Check for null pointers passed as plan handles.
Add missing prerequisite to Makefile.
Initialise reference count in populate_properties().
Remove unused values.
Add PAPI detection.
Add untested PAPI wrapper.
Add PAPI analysis of interpolation routines.
Minor code cleanup.