Allow compile_dll to work when source is in tempdir()