I just made changes to the Makefile.am file in /ode/src in order to address the issue of the sources being recompiled with default flags to build the shared library, please test it out. I also added a check for winmm in configure.in.