Add a method for compiling a model in place without writing to a file.