Update the modified build to work with MinGW