graphics/kdiagram: fix build with GCC-based architectures
PR: 232258 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl>