Fixed warnings in MinGW

I remember @FestusHagen reported #298 over a month ago. I didn't fix it because I was not clear whether or not it was useful to make changes to ```master``` branch at that time. But we have made some changes from that time on.