Fixed warnings for missing function prototypes

Because gradientComponentsForColors is not defined in a header file anywhere, LLVM issues a warning under Missing Function Prototypes. When treating warnings as errors, this was problematic.