Compiles and generates an assembly using reflection