Use correct primitives when compiling to Core (target=cr)