compiling raytrace with mgmt, but linking fails