Make hue sorting 3x faster by avoiding atan2() calls.
Use link-time optimization.