Compile to .dll with .pdb when -debug flag is provided