Did some clean up

The actual fix was the set code generation to debug dll in projects!!!