My point was that your CMake settings don't match the DLL that causes the error. So make sure that you're really using the DLLs that you recompiled, and not an older version that would be lost somewhere on your hard drive.
Even your callstack doesn't match the code that you're showing.
Please provide consistent information, otherwise we won't be able to help you.