Add forward declarations to prevent gcc errors