Fixed DebugDLL issues and others