The key, as I mentioned before, is to make sure that the libraries (.lib files) are built using the same setting of _ITERATOR_DEBUG_LEVEL as your executable is.

You modify the setting for your executable in the project's preprocessor directives.
You modify the setting for the libraries using the bjam command line.