Fix building with MinGW

Signed-off-by: Mohammad Alsaleh <CE.Mohammad.AlSaleh@gmail.com>