Fix compilation under MinGW
Save the distribution folder in the cache