Replaced passing contents of an unsaved file as a string with passing a temporary file, because passing file contents via epc was proving to be too slow.
Corrected signature of recompile function.