Fixed compilation with MINGW.

Added dependencies to fixe mingw compilation.  NEED TO CHECK IF MSVC
COMPILATION STILL WORKS.