Fix creating new objects in compiled code.