Fixes MinGW build also