I found this git repo that contains fixes for mingw32 compilation of flac: git://code.entropywave.com/git/flac.git Switch to the "ew" branch to see the fixes. I'd be glad if this went upstream as it'd make my job easier.