Fixed dll when building in debug mode