Fixing C3D build