Added -inMemory flag to build system

When compiling to dll, I get errors that the file is in use. This works at least...