Apparently, regardless of whether you're in release mode or not, Microsoft's vectors do some 'other' stuff in the background.
So, in order to fix this issue you have to use these pre-processor definitions:
#define _SECURE_SCL 0
#define _HAS_ITERATOR_DEBUGGING 0
I still think it's a bit silly that they assume you want iterator checking, etc on but w/e.