Fix compilation issues when using MingW.
Merge branch 'master' of github.com:magsilva/dtm