k3d: fix build with newer gcc versions (-fpermissive)