Optimize makefiles for latest autotools.
Remove gcc warning in c2ndps.
refactor dtw.c
Remove autotools warning messages.