ODE.dll on Vista

I am trying to run the XPA demo appp and I get the following error as the app tries to load the ode.dll

Unable to load DLL 'ode.dll': The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail. (Exception from HRESULT: 0x800736B1).

I spent most of this afternoon getting the ode.dll to work on vista and I thought it might be useful to someone.
It looks like the ode.dll was built in debug mode (Assembly Microsoft.VC80.DebugCRT, version="8.0.50608.0")
I already had Visual C++ 2008 Express Edition installed and installing the runtimes didn't help.
It runs after installing Visual C++ 2005 Express Edition.