Added forward declaration for Hsv.
Fixed return type error in inline functions