Added a compile function to the VM.