added compileFile() and checkCompile() for #148 and #132