Fix for using MinGW